<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//use think\Route;
Route::get('','index/index');
Route::group(['prefix'=>'admin/admin/','method'=>'get|post','name'=>'admin/'],function (){
    Route::rule('/','admin_index');
})->middleware('admincheck');
Route::rule('admin/login','admin/admin/admin_login','get|post');
//前台路由
Route::group(['prefix'=>'index/index/','method'=>'get|post','name'=>'/'],function(){
	Route::rule('','index');
	Route::rule('about_me','about_me');
	Route::rule('teacher_list','teacher_list');
	Route::rule('fankui','feedback');
	Route::rule('notice','notice');
    Route::rule('notice_info/:id','notice_info');
});
//前台预约
Route::group(['prefix'=>'index/lab/','method'=>'get|post','name'=>'/lab/'],function (){
    Route::rule('lab_empty','lab_empty');
    Route::rule('lab_app_list','lab_app_list');
    Route::rule('lab_history_list','lab_history_list');
});
//前台器具
Route::group(['prefix'=>'index/tool_app/','method'=>'get|post','name'=>'/tool/'],function (){
    Route::rule('tool_small','tool_small_app');
    Route::rule('tool_big','tool_big_app');
    Route::rule('tool_list','tool_list');
});
Route::group(['prefix'=>'index/index/','method'=>'get|post','name'=>'/'],function(){
    Route::rule('login','login');
    Route::rule('logout','logout');
    Route::rule('regist','regist');
});
